package com.pig4cloud.pig.wzjiang.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.pig4cloud.pig.common.core.util.TreeNode;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;


import java.time.LocalDateTime;
import java.util.List;

/**
 * 栏目表
 *
 * @author jiang
 * @date 2025-07-24 09:05:46
 */
@Data
@TableName("wz_column")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "栏目表")

public class WzColumnEntity extends Model<WzColumnEntity>{


	/**
	* 主键
	*/
    @TableId(type = IdType.AUTO)
    @Schema(description="主键")
    private Long columnId;

	/**
	* 栏目名称
	*/
    @Schema(description="栏目名称")
    private String columnName;

	/**
	* 栏目类型
	*/
    @Schema(description="栏目类型")
    private String cloumnType;

	/**
	* 排序
	*/
    @Schema(description="排序")
    private Long sortOrder;

	/**
	* 链接地址
	*/
    @Schema(description="链接地址")
    private String linkAddress;

	/**
	* 一级栏目id
	*/
    @Schema(description="一级栏目id")
    private Long parentId;

	/**
	* 是否隐藏
	*/
    @Schema(description="是否隐藏")
    private String visible;

	/**
	* 备注
	*/
    @Schema(description="备注")
    private String remark;

	/**
	* 是否推荐
	*/
    @Schema(description="是否推荐")
    private Integer recommend;

	/**
	* 创建人
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建人")
    private String createBy;

	/**
	* 创建时间
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建时间")
    private LocalDateTime createTime;

	/**
	* 更新人
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="更新人")
    private String updateBy;

	/**
	* 更新时间
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="更新时间")
    private LocalDateTime updateTime;

	/**
	* 删除标记
	*/
	@TableLogic(value = "0", delval = "1")
		@TableField(fill = FieldFill.INSERT)
    @Schema(description="删除标记")
    private String delFlag;

	/**
	 * 树形子节点
	 */
	@TableField(exist = false)
	@Schema(description = "子节点")
	private List<WzColumnEntity> children;

}